package com.sudo.boot.admin;

import com.sudo.boot.cors.annotation.EnableFxwCors;
import com.sudo.boot.dingtalk.annotation.EnableFxwDingTalk;
import com.sudo.boot.email.config.EnableFxwEmailServer;
import com.sudo.boot.ratelimit.annotation.EnableFxwLimiter;
import com.sudo.boot.threadpool.annotation.EnableFxwThPool;
import com.sudo.boot.xss.annotation.EnableFxwXss;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@EnableFxwXss
@EnableFxwCors
@EnableFxwThPool
@EnableFxwLimiter
@EnableFxwEmailServer
@EnableFxwDingTalk
@SpringBootApplication(scanBasePackages = {"com.sudo.boot.admin","com.sudo.boot.service"})
@MapperScan(basePackages = "com.sudo.boot.mapper.*.mapper")
public class FxwBootApplication {

    public static void main(String[] args) {
        SpringApplication springApp = new SpringApplication(FxwBootApplication.class);
        springApp.setAdditionalProfiles("starter");
        springApp.run(args);
    }
}
